Converts the response error response into an object.
The error object, or null if an exception was encountered